package com.eci.example.domain.entity;


import com.eci.common.asset.core.Page;
import com.eci.context.asset.annotation.ColumnMean;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author jay
 * @version 1.0.0
 * @Desccription TODO
 * @createDate 2022-07-04 8:58
 */
@Entity
@Table(name="example")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Example  extends Page implements Serializable {
    /** 主键 */
    @Id
//    @GeneratedValue(generator = "generator")
//    @GenericGenerator(name = "generator", strategy = "uuid")
    @Column(name = "id", unique = true, nullable = false, length = 32)
    @ColumnMean("主键") //uuid
    private Long id ;

    @Column(name = "name", length = 32, nullable = false)
    @ColumnMean("bu中文名")
    private String name ;

    @Column(name = "amount")
    @ColumnMean("金额")
    private Integer amount ;

}